import request from "@/utils/request.js";

export const getOrdersBystatus=(status)=>{
    return request({
        url:'/admin/order/getOrdersByStatus',
        method:'get',
        params:{status}
    })
}

export const updateOrderStatus=(orderId,status)=>{
    return request({
        url:'/admin/order/updateOrderStatus',
        method:'post',
        params:{orderId,status}
    })
}

export const getOrderByPage=(pageSelect)=>{
    return request({
        url:'/admin/order/getOrdersByPage',
        method:'get',
        params:pageSelect
    })
}